package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import org.springframework.lang.NonNull;

/**
 *
 *   直邮产品销售数据增量统计<br>
 *<br>
 * 数据表： direct_mail_goods_product_increment_data
 *
 */
@Description({"直邮产品销售数据增量统计"})
public class DirectMailGoodsProductIncrementData implements Serializable {
    /**
     *
     *   主键    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Id
     */
    @Description({"主键", "不能为空", "数据长度: 10"})
    @NonNull
    private Integer id;

    /**
     *
     *   直邮产品id    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.DirectMailProductId
     */
    @Description({"直邮产品id", "不能为空", "数据长度: 10"})
    @NonNull
    private Integer directMailProductId;

    /**
     *
     *   自定义产品名称    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CustomName
     */
    @Description({"自定义产品名称", "数据长度: 400"})
    private String customName;

    /**
     *
     *   规格名称, 多规格的名称数组    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.SpecNames
     */
    @Description({"规格名称, 多规格的名称数组", "不能为空", "数据长度: 255"})
    @NonNull
    private String specNames;

    /**
     *
     *   专柜价格    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CounterPrice
     */
    @Description({"专柜价格", "数据长度: 18"})
    private BigDecimal counterPrice;

    /**
     *
     *   零售价格    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RetailPrice
     */
    @Description({"零售价格", "不能为空", "数据长度: 18"})
    @NonNull
    private BigDecimal retailPrice;

    /**
     *
     *   库存数量    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.StockNumber
     */
    @Description({"库存数量", "不能为空", "数据长度: 10"})
    @NonNull
    private Integer stockNumber;

    /**
     *
     *   剩余库存数量    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RemainStockNumber
     */
    @Description({"剩余库存数量", "不能为空", "数据长度: 10"})
    @NonNull
    private Integer remainStockNumber;

    /**
     *
     *   成交量：每天    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.PaidNumber
     */
    @Description({"成交量：每天", "数据长度: 10"})
    private Integer paidNumber;

    /**
     *
     *   成交金额：每天    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.PaidPrice
     */
    @Description({"成交金额：每天", "数据长度: 18"})
    private BigDecimal paidPrice;

    /**
     *
     *   订单数量：每天    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.OrderNumber
     */
    @Description({"订单数量：每天", "数据长度: 10"})
    private Integer orderNumber;

    /**
     *
     *   状态; 规格不存在; 暂停销售    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Status
     */
    @Description({"状态; 规格不存在; 暂停销售", "不能为空", "数据长度: 5"})
    @NonNull
    private Integer status;

    /**
     *
     *   记录时间    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RecordTime
     */
    @Description({"记录时间", "数据长度: 26"})
    private Date recordTime;

    public static final Boolean NOT_DELETED = Deleted.NOT_DELETED.value();

    public static final Boolean IS_DELETED = Deleted.IS_DELETED.value();

    /**
     *
     *   逻辑删除    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Deleted
     */
    @Description({"逻辑删除", "不能为空", "数据长度: 1"})
    @NonNull
    private Boolean deleted;

    /**
     *
     *   创建用户    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CreateUser
     */
    @Description({"创建用户", "不能为空", "数据长度: 50"})
    @NonNull
    private String createUser;

    /**
     *
     *   创建时间    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CreateTime
     */
    @Description({"创建时间", "不能为空", "数据长度: 26"})
    @NonNull
    private Date createTime;

    /**
     *
     *   修改用户    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.UpdateUser
     */
    @Description({"修改用户", "不能为空", "数据长度: 50"})
    @NonNull
    private String updateUser;

    /**
     *
     *   修改时间    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.UpdateTime
     */
    @Description({"修改时间", "不能为空", "数据长度: 26"})
    @NonNull
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 获取参数<br><br>
     *
     *   主键    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置参数<br><br>
     *
     *   主键<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取参数<br><br>
     *
     *   直邮产品id    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.DirectMailProductId
     */
    public Integer getDirectMailProductId() {
        return directMailProductId;
    }

    /**
     * 设置参数<br><br>
     *
     *   直邮产品id<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.DirectMailProductId
     */
    public void setDirectMailProductId(Integer directMailProductId) {
        this.directMailProductId = directMailProductId;
    }

    /**
     * 获取参数<br><br>
     *
     *   自定义产品名称    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CustomName
     */
    public String getCustomName() {
        return customName;
    }

    /**
     * 设置参数<br><br>
     *
     *   自定义产品名称<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CustomName
     */
    public void setCustomName(String customName) {
        this.customName = customName == null ? null : customName.trim();
    }

    /**
     * 获取参数<br><br>
     *
     *   规格名称, 多规格的名称数组    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.SpecNames
     */
    public String getSpecNames() {
        return specNames;
    }

    /**
     * 设置参数<br><br>
     *
     *   规格名称, 多规格的名称数组<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.SpecNames
     */
    public void setSpecNames(String specNames) {
        this.specNames = specNames == null ? null : specNames.trim();
    }

    /**
     * 获取参数<br><br>
     *
     *   专柜价格    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CounterPrice
     */
    public BigDecimal getCounterPrice() {
        return counterPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   专柜价格<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CounterPrice
     */
    public void setCounterPrice(BigDecimal counterPrice) {
        this.counterPrice = counterPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   零售价格    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RetailPrice
     */
    public BigDecimal getRetailPrice() {
        return retailPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   零售价格<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RetailPrice
     */
    public void setRetailPrice(BigDecimal retailPrice) {
        this.retailPrice = retailPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   库存数量    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.StockNumber
     */
    public Integer getStockNumber() {
        return stockNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   库存数量<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.StockNumber
     */
    public void setStockNumber(Integer stockNumber) {
        this.stockNumber = stockNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   剩余库存数量    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RemainStockNumber
     */
    public Integer getRemainStockNumber() {
        return remainStockNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   剩余库存数量<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RemainStockNumber
     */
    public void setRemainStockNumber(Integer remainStockNumber) {
        this.remainStockNumber = remainStockNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   成交量：每天    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.PaidNumber
     */
    public Integer getPaidNumber() {
        return paidNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   成交量：每天<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.PaidNumber
     */
    public void setPaidNumber(Integer paidNumber) {
        this.paidNumber = paidNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   成交金额：每天    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.PaidPrice
     */
    public BigDecimal getPaidPrice() {
        return paidPrice;
    }

    /**
     * 设置参数<br><br>
     *
     *   成交金额：每天<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.PaidPrice
     */
    public void setPaidPrice(BigDecimal paidPrice) {
        this.paidPrice = paidPrice;
    }

    /**
     * 获取参数<br><br>
     *
     *   订单数量：每天    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.OrderNumber
     */
    public Integer getOrderNumber() {
        return orderNumber;
    }

    /**
     * 设置参数<br><br>
     *
     *   订单数量：每天<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.OrderNumber
     */
    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    /**
     * 获取参数<br><br>
     *
     *   状态; 规格不存在; 暂停销售    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置参数<br><br>
     *
     *   状态; 规格不存在; 暂停销售<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取参数<br><br>
     *
     *   记录时间    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RecordTime
     */
    public Date getRecordTime() {
        return recordTime;
    }

    /**
     * 设置参数<br><br>
     *
     *   记录时间<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.RecordTime
     */
    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public void andLogicalDeleted(boolean deleted) {
        setDeleted(deleted ? Deleted.IS_DELETED.value() : Deleted.NOT_DELETED.value());
    }

    /**
     * 获取参数<br><br>
     *
     *   逻辑删除    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Deleted
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置参数<br><br>
     *
     *   逻辑删除<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.Deleted
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    /**
     * 获取参数<br><br>
     *
     *   创建用户    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CreateUser
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * 设置参数<br><br>
     *
     *   创建用户<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CreateUser
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /**
     * 获取参数<br><br>
     *
     *   创建时间    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CreateTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置参数<br><br>
     *
     *   创建时间<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.CreateTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取参数<br><br>
     *
     *   修改用户    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.UpdateUser
     */
    public String getUpdateUser() {
        return updateUser;
    }

    /**
     * 设置参数<br><br>
     *
     *   修改用户<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.UpdateUser
     */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    /**
     * 获取参数<br><br>
     *
     *   修改时间    <br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.UpdateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置参数<br><br>
     *
     *   修改时间<br>
     *<br>
     * 字段名： direct_mail_goods_product_increment_data.UpdateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public enum Deleted {
        NOT_DELETED(new Boolean("false"), "未删除"),
        IS_DELETED(new Boolean("true"), "已删除");

        private final Boolean value;

        private final String name;

        Deleted(Boolean value, String name) {
            this.value = value;
            this.name = name;
        }

        public Boolean getValue() {
            return this.value;
        }

        public Boolean value() {
            return this.value;
        }

        public String getName() {
            return this.name;
        }
    }

    public enum Column {
        id("Id", "id", "INTEGER", false),
        directMailProductId("DirectMailProductId", "directMailProductId", "INTEGER", false),
        customName("CustomName", "customName", "VARCHAR", false),
        specNames("SpecNames", "specNames", "VARCHAR", false),
        counterPrice("CounterPrice", "counterPrice", "DECIMAL", false),
        retailPrice("RetailPrice", "retailPrice", "DECIMAL", false),
        stockNumber("StockNumber", "stockNumber", "INTEGER", false),
        remainStockNumber("RemainStockNumber", "remainStockNumber", "INTEGER", false),
        paidNumber("PaidNumber", "paidNumber", "INTEGER", false),
        paidPrice("PaidPrice", "paidPrice", "DECIMAL", false),
        orderNumber("OrderNumber", "orderNumber", "INTEGER", false),
        status("Status", "status", "INTEGER", true),
        recordTime("RecordTime", "recordTime", "TIMESTAMP", false),
        deleted("Deleted", "deleted", "BIT", false),
        createUser("CreateUser", "createUser", "VARCHAR", true),
        createTime("CreateTime", "createTime", "TIMESTAMP", false),
        updateUser("UpdateUser", "updateUser", "VARCHAR", false),
        updateTime("UpdateTime", "updateTime", "TIMESTAMP", false);

        private static final String BEGINNING_DELIMITER = "`";

        private static final String ENDING_DELIMITER = "`";

        private final String column;

        private final boolean isColumnNameDelimited;

        private final String javaProperty;

        private final String jdbcType;

        public String value() {
            return this.column;
        }

        public String getValue() {
            return this.column;
        }

        public String getJavaProperty() {
            return this.javaProperty;
        }

        public String getJdbcType() {
            return this.jdbcType;
        }

        Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) {
            this.column = column;
            this.javaProperty = javaProperty;
            this.jdbcType = jdbcType;
            this.isColumnNameDelimited = isColumnNameDelimited;
        }

        public String desc() {
            return this.getEscapedColumnName() + " DESC";
        }

        public String asc() {
            return this.getEscapedColumnName() + " ASC";
        }

        public static Column[] excludes(Column ... excludes) {
            ArrayList<Column> columns = new ArrayList<>(Arrays.asList(Column.values()));
            if (excludes != null && excludes.length > 0) {
                columns.removeAll(new ArrayList<>(Arrays.asList(excludes)));
            }
            return columns.toArray(new Column[]{});
        }

        public String getEscapedColumnName() {
            if (this.isColumnNameDelimited) {
                return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString();
            } else {
                return this.column;
            }
        }
    }
}